package de.moc.client;

import java.util.Vector;

import de.moc.shared.*;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface SurveyServiceAsync {

	void newSurvey(Survey aSurvey, AsyncCallback<String> asyncCallback);

	void getResult(String id, AsyncCallback<Survey> callback);

	void deleteSurvey(String id, AsyncCallback<Boolean> callback);

	void endActiveSurvey(AsyncCallback<Boolean> callback);

	void getActiveSurvey(AsyncCallback<Survey> callback);

	void addExampleSurvey(AsyncCallback<String> callback);

	void getAllSurveys(AsyncCallback<Vector<Survey>> callback);

	void resetSurvey(String id, AsyncCallback<Survey> callback);
}
